import request from "@/utils/request";

import { baseUrlConfig } from "@/config/config";
const basePath = baseUrlConfig.processBaseUrl;

// 事件总结评估列表
export const getEventEstimateList = (data: any) => {
  return request({
    url: basePath + "/event/estimate/pageList",
    method: "post",
    data,
  });
};
// 事件总结评估确认/事件转知识库
export const estimateConfirm = (data: any) => {
  return request({
    url: basePath + "/event/estimate/confirm",
    method: "post",
    data,
  });
};
// 事件转知识库
export const convertKnowledge = (id: any) => {
  return request({
    url: basePath + `/event/estimate/convertKnowledge/${id}`,
    method: "get",
  });
};
// 事件总结评估导出
export const estimateExport = (data: any) => {
  return request({
    url: basePath + "/event/estimate/export",
    method: "post",
    responseType: "blob",
    data,
  });
};
// 获取事件评估信息
export const getEstimate = (data: any) => {
  return request({
    url: basePath + `/event/estimate/get/${data}`,
    method: "get",
  });
};
